#include <stdio.h>

int main() {
	int n = 0;
	int a = 2;
	int t = a;
	int sum = 0;
	while (n <= 5) {
		a *= 10;
		a += t;
		printf("a=%d\n", a);
		sum += a;
		n++;
	}
	printf("%d\n", sum);
	return 0;
}